Vague Header Setup ^^^^^ Definition:
- A vague header setup smell occurs when fields are solely initialized in the header of a class. We consider this a smell as the behavior of the code is not explicitly defined and depends on the field modifier (static or member) as well as on the implementation of the test framework. Vague header setups might hamper code comprehension and maintainability, as fields can be placed anywhere in the class. Further, in many test frameworks exception messages are more expressive for fields initialized in the setup.
References:
Quality attributes
file-code;1em
- Code Examplecomment-discussion;1em
- Cause and Effectgraph;1em
- Frequencysync;1em
- Refactoring
- Automated Detection of Test Fixture Strategies and Smells
comment-discussion;1em
sync;1em
- Automatic generation of smell-free unit tests
comment-discussion;1em
- Strategies for avoiding text fixture smells during software evolution
comment-discussion;1em
graph;1em
sync;1em
- Test Smell Detection Tools: A Systematic Mapping Study